package com.ygl.hbase.pojo;

import java.util.List;
import java.util.Map;

/**
 * @Date 2022/1/25 10:51
 * @Created yanggld
 * @Description
 */
public class HBaseModel {
    public static final String ROW_KEY = "rowKey";
    public static final String CF = "cf";

    private String tableName;
    /**
     * {
     *     "rowKey":"1001",
     *      "cf":"info",
     *      "name":"张三",
     *      "age":13
     *  }
     *  默认带有的key是 rowKey 和 cf
     */
    private List<Map<String,String>> rows;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public List<Map<String, String>> getRows() {
        return rows;
    }

    public void setRows(List<Map<String, String>> rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "HBaseModel{" +
                "tableName='" + tableName + '\'' +
                ", rows=" + rows +
                '}';
    }
}
